package com.example.learn_gl_android.anglib.core

import com.example.learn_gl_android.anglib.core.renderer.matrial.IMaterial

class Object : IObject{

    var materials : Array<IMaterial> = arrayOf()
    val compoents : ArrayList<IComponent> = ArrayList()

    override fun addComponent(comp : IComponent) {
        compoents.add(comp)
    }

    override fun removeComponent(comp: IComponent) {
        compoents.remove(comp)
    }

    override fun removeComponentByIndex(idx: Int) {
        compoents.removeAt(idx)
    }

}